package com.kaibai.pojo;

import java.math.BigDecimal;

/**
 * 购物车商品项
 */
public class CartItemDB {
    private Integer id;
    private Integer uId;
    private Integer gId;
    private String name;
    private Integer count;
    private BigDecimal price;

    public CartItemDB() {
    }

    public CartItemDB(Integer id, Integer uId, Integer gId, String name, Integer count, BigDecimal price) {
        this.id = id;
        this.uId = uId;
        this.gId = gId;
        this.name = name;
        this.count = count;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getgId() {
        return gId;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }


    @Override
    public String toString() {
        return "CartItemDB{" +
                "id=" + id +
                ", uId=" + uId +
                ", gId=" + gId +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", price=" + price +
                '}';
    }
}
